<%--
    Document   : index
    Created on : 12.02.2010, 22:48:51
    Author     : Morfant
--%>

<%@page import="java.util.Map"%>
<%@page import="stud.cp.user.valueobjects.Weapon"%>
<%@page import="stud.cp.user.valueobjects.WeaponType"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" language="java"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <%@include file="/header.jsp" %>
    <script src="javascript/CalendarPopup.js" type="text/javascript"></script>
    <SCRIPT  type="text/javascript">
        var cal = new CalendarPopup();
    </SCRIPT>
    <body>
        <div class="page">
            <%@include file="/cap.jsp" %>
            <div id="main">
                <h2>Выбор даты</h2>

                <form action="<%= response.encodeURL("user-queries-action.do")
                                        + "?"
                                        + PluginConst.SUBACTION
                                        + "="
                                        + PluginConst.GET_CHANGE_SET_FOR_DATE_PAGE%>"
                      method="post"
                      name="<%=PluginConst.FORM_NAME%>">
                    <fieldset>
                        <legend>Выбор даты</legend>
                        <p>
                            <span class="highlight-delete-item">
                                <label for="<%=PluginConst.USER_NAME%>">
                                    Выберите дату изменений :
                                </label>
                            </span>
                                <INPUT TYPE="text" NAME="<%=PluginConst.SELECT_DATE %>" VALUE="" readonly>
                            <A HREF="#"
                               onClick=
                                   "cal.select(document.forms['<%=PluginConst.FORM_NAME%>'].<%=PluginConst.SELECT_DATE %>,
                                   'anchor1','dd/MM/yyyy');
                                   return false;"
                               NAME="anchor1" ID="anchor1">Выбрать дату</A>
                        </p>
                    </fieldset>
                    <p>
                        <input name="confirmButton" type="submit" value="Просмотреть" />
                    </p>
                </form>
                <script  type="text/javascript">
                    var frmvalidator = new Validator("<%=PluginConst.FORM_NAME%>");
                    frmvalidator.
                        addValidation("<%=PluginConst.SELECT_DATE%>",
                    "req",  "Дата должна быть выбранна!");
                </script>
                <div id="weaponmenucontainer">
                    <ul id="weaponmenu">
                        <li><a href="<%= response.encodeURL("user-queries-action.do")
                                                + "?"
                                                + PluginConst.SUBACTION
                                                + "="
                                                + PluginConst.GET_LIST%>">Вернуться к пользовательским запросам</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </body>
</html>
